<!--<?php print <<<EOT
-->
<div id="breadCrumb">
		<img src="$imgpath/$stylepath/thread/home-old.gif" align="absmiddle" />&nbsp;<a href="$db_bfn" title="$db_bbsname">$db_bbsname</a><em>&gt;</em>登录
</div>
<div id="pw_content">
	<div class="p20">
		<div class="regTitle cc">
			<span class="fr">还没有帐号？<a href="$db_registerfile#breadCrumb" class="s4">注册一个</a></span>
			<h5>登录</h5>
		</div>
		<table width="100%"><tr><td class="vt" height="300" style="padding-bottom:30px;">
		<form action="login.php?" method="post" name="login">
		<input type="hidden" value="$forward" name="forward" />
		<input type="hidden" value="$jumpurl" name="jumpurl" />
		<input type="hidden" value="2" name="step" />
		<div class="regForm">
<!--
EOT;
if($db_sitemsg['login']['0']){
print<<<EOT
-->
			<div class="blockquote mb20" style="margin-top:-30px;">{$db_sitemsg[login][array_rand($db_sitemsg[login])]}</div>
<!--
EOT;
}print<<<EOT
-->
			<dl>
				<dt>
<!--
EOT;
if(count($_LoginInfo['logintype'])==1){
$value = current($_LoginInfo['logintype']);
print <<<EOT
-->
					$arr_logintypename[$value]
<!--
EOT;
}elseif(count($_LoginInfo['logintype'])>1){
print <<<EOT
-->
					<select name="lgt">
<!--
EOT;
$i=1;
foreach($_LoginInfo['logintype'] as $value){
$str_checked = $i==1? 'selected':'';
$i++;
print <<<EOT
-->
					<option value="$value" $str_checked>$arr_logintypename[$value]</option>
<!--
EOT;
}print <<<EOT
-->
					</select>
<!--
EOT;
}else{print <<<EOT
-->
							<input type="radio" name="lgt" value="$value" checked />
							<span id="login_$value">用户名</span>
<!--
EOT;
}print <<<EOT
-->
				</dt>
				<dd class="ip"><div class=""><input type="text" maxLength="60" name="pwuser" tabindex="2" /></div></dd>
				<dd class="tp"><div id="regname_info"></div></dd>
			</dl>
			<dl class="cc">
				<dt>密　码</dt>
				<dd class="ip"><div><input class="input mr10" type="password" maxLength="20" name="pwpwd" size="40" tabindex="3" /></div></dd>
				<dd><div class="p5"><a href="sendpwd.php#breadCrumb" class="s4" target="_blank">找回密码</a></div></dd>
			</dl>

<!--
EOT;
if($db_ifsafecv){print <<<EOT
-->
			<dl class="cc">
				<dt>安全问题</dt>
				<dd class="ip">
					<select name="question" onchange="showcustomquest(this.value)" tabindex="4" style="width:230px;margin-top:3px;">
						<option value="0">无安全问题</option><option value="1">我爸爸的出生地</option><option value="2">我妈妈的出生地</option><option value="3">我的小学校名</option><option value="4">我的中学校名</option><option value="5">我最喜欢的运动</option><option value="6">我最喜欢的歌曲</option><option value="7">我最喜欢的电影</option><option value="8" >我最喜欢的颜色</option><option value="-1">自定义问题</option>
					</select>
				</dd>
      </dl>
			<dl class="cc" id="customquest" style="display:none">
				<dt>自定义问题</dt>
				<dd class="ip">
        	<div><input type="text" name="customquest" tabindex="5" /></div>
				</dd>
      </dl>
			<dl class="cc">
				<dt>您的答案</dt>
				<dd class="ip mr5"><div><input type="text" name="answer" tabindex="6" /></div></dd>
				<dd><div class="p5 s6">如果您设置了安全问题，需要填写正确的答案才能登录站点</div></dd>
			</dl>
<!--
EOT;
}if($loginq && $db_question){
$qkey = array_rand($db_question);
print <<<EOT
-->
      <dl class="cc">
				<dt>验证问答</dt>
				<dd class="ip"><div><input class="input" type="text" name="qanswer" tabindex="7" /><input type="hidden" name="qkey" value="$qkey" /></div></dd>
				<dd class="tp"><div class="ignore">{$db_question[$qkey]}
<!--
EOT;
if($showq){
print <<<EOT
-->
					<p>正确答案:{$db_answer[$qkey]}</p>
<!--
EOT;
}print <<<EOT
--></div>
				</dd>
      </dl>
<!--
EOT;
}if($db_gdcheck & 2){
print <<<EOT
-->
			<dl class="cc">
				<dt>认证码</dt>
				<dd class="ip ck">
					<div><input id="gdcode" name="gdcode" value="" /></div>
					<span id="menu_gd"></span>
					<img src="ck.php?nowtime=$timestamp" align="top" onclick="try{opencode('',this,'register_ckcode')}catch(e){}" class="cp mb10" id="register_ckcode" alt="看不清楚，换一张" title="看不清楚，换一张" />
				</dd>
				<dd></dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
        <dl class="cc">
            <dt>隐身登录</dt>
            <dd style="padding-top:5px;"><label for="hideid1" class="mr20"><input id="hideid1" name="hideid" type="radio" value="1" />开启</label><label for="hideid0"><input name="hideid" id="hideid0" type="radio" value="0" checked tabindex="8" />关闭</label></dd>
        </dl>
        <dl class="cc">
            <dt>Cookie 有效期:</dt>
            <dd style="padding-top:5px;"><label for="cktime1" class="mr20"><input id="cktime1" type="radio" name="cktime" value="31536000" checked tabindex="9" />一年</label><label for="cktime2" class="mr20"><input id="cktime2" type="radio" name="cktime" value="2592000" />一个月</label><label for="cktime3" class="mr20"><input id="cktime3" type="radio" name="cktime" value="86400" />一天</label><label for="cktime4" class="mr20"><input id="cktime4" type="radio" name="cktime" value="3600" />一小时</label><label for="cktime5" class="mr20"><input type="radio" id="cktime5" name="cktime" value="0" />即时</label></dd>
        </dl>
        <dl class="cc">
            <dt>&nbsp;</dt>
            <dd><span class="btn"><span><button type="submit" name="submit">登录</button></span></span></dd>
        </dl>
		</div>
		</form>
		</td></tr></table>
	</div>
</div>
<script language="JavaScript">
document.login.pwuser.focus();
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
<!--
EOT;
?>-->